﻿//
// *************************************************************************************
// WP-Framework
//
// Developed by 
// Lukas Kretschmar (lkretschmar.dev@bluewin.ch)
//
// Switzerland, Copyright (c) 2013 lkretschmar
// This content is released under the MIT License (http://opensource.org/licenses/MIT).
//     
// *************************************************************************************
//
//


using System.Linq.Expressions;
using KretschIT.WP_Fx.EasyMoq.Calls.Collections.Items;

namespace KretschIT.WP_Fx.EasyMoq.Calls.Actions
{
    internal class ActionSetupItem<T> : SetupItem<IActionMock<T>>, IActionSetupItem<T>
    {
        public ActionSetupItem(MethodCallExpression call, IActionMock<T> action)
            : base(call, action)
        {
            
        }

        public void Execute(T obj)
        {
            this.IncrementCallCounter();
            this.Executable.Execute(obj);
        }
    }
}
